<?php
namespace handler;
use QYS\Protocol\Response;
use globalunit\utils\CoroutineCurl;
use QYS\Protocol\Request;
use QYS\Task\Factory;
use QYS\Db\Mysql;
use QYS\Util\Debug;
use QYS\Log\Log;
use QYS\Db\Redis;
use globalunit\utils\DBClass;
use globalunit\utils\JWTUtil;
use globalunit\utils\RequestHelper;
use globalunit\utils\Utils;
use globalunit\utils\KeysUtil;
use globalunit\utils\Common;
use QYS\Core\Config as QYSConfig;
use globalunit\utils\QueueHelper;
use Carbon\Carbon;
use \Swoole\Coroutine as co;
use QYS\QYS;
use QYS\Util\Dir;
use QYS\Core\Config;
use globalunit\utils\GenID;

class LogHandler
{

    function __construct()
    {
    }

    public function on_cal_fanyong($cmd){
        Log::var_dump($cmd);
    }

    public function handle($cmd)
    {
        $method = null;
        if(isset($cmd["c"]) && isset($cmd["m"])){
            $method="on_".$cmd["c"]."_".$cmd["m"];
        }
        if(method_exists($this,$method))
        {
            $this->$method($cmd);
        }
    }
}

